package com.dlengine.order;

import java.util.concurrent.CountDownLatch;
import org.springframework.boot.Banner;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

/**
 * OrderMain
 *
 * @author chentudong
 * @date 2024/1/15 16:28
 * @since 1.0
 */
@SpringBootApplication
public class OrderMain {

  public static void main(String[] args) throws Exception {
    SpringApplicationBuilder builder = new SpringApplicationBuilder();
    builder.sources(OrderMain.class).web(WebApplicationType.SERVLET).bannerMode(Banner.Mode.OFF)
        .run(args);
    CountDownLatch closeLatch = new CountDownLatch(1);
    closeLatch.await();
  }
}
